module SchoolsHelper
  def area_name(id)
    return Area.disasters.index(id).to_s
  end
  
  def count_display(count)
    color = count>0 ? "red" : "gray"
    "<span style=\"color:#{color}\">#{count}</span>"
  end

  def tags_selector_for(input_field, tags)
    result = ""
    tags.each do |e|
      result << "<a href=\"javascript:swap('#{input_field}','#{e}')\">#{e}</a>&nbsp;"
    end
    return result
  end
end